﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace QLTV.Forms
{
    public partial class frmPleaseWait : DevExpress.XtraEditors.XtraForm
    {
        public volatile bool ShouldCloseNow;
        public frmPleaseWait()
        {
            InitializeComponent();
        }

        private void timer1_Tick(object sender, EventArgs e)
        {

            if (ShouldCloseNow)
                Close();

        }

        private void frmPleaseWait_Load(object sender, EventArgs e)
        {
            ShouldCloseNow = false;
            timer1.Start();
        }
    }
}